×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

by: alybeverley

9

0

8

# C Programming Basics Bundle CS 102

alybeverley
UAH
GPA 4.0

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

This bundle contains basic programs in the C programming language. These notes are for when you've JUST STARTED programming in , as they won't be of any use to you otherwise. Programs Included:...
COURSE
Intro to C Programming
PROF.
Mini Zheng
TYPE
Bundle
PAGES
8
WORDS
CONCEPTS
Computer Science, programming
KARMA
75 ?

## Popular in Computer Science and Engineering

This 8 page Bundle was uploaded by alybeverley on Tuesday October 11, 2016. The Bundle belongs to CS 102 at University of Alabama - Huntsville taught by Mini Zheng in Fall 2016. Since its upload, it has received 9 views. For similar materials see Intro to C Programming in Computer Science and Engineering at University of Alabama - Huntsville.

×

## Reviews for C Programming Basics Bundle

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/11/16
// //PROGRAM: adding two integers (Figure 2.5, page 45 of textbook) // #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void)  { int integer1,integer2,sum; printf("Enter first and second integers\n"); scanf("%d%d",&integer1,&integer2); //sum integer defined, which means the program will calculate the sum of the two  integers entered. sum=integer1+integer2; printf("Sum of entered numbers = %d\n",integer1+integer2); printf("\n"); printf("The value of integer1 is %d\nThe value of integer 2 is %d\n\nThe sum of these  two numbers is %5d\n",integer1,integer2,sum); system("pause"); } //display an arrow amidst a few back and forward slashes #include <stdio.h> #include <stdlib.h> int main(void) { //printing an arrow using three printf statements. printf("\\ \\ \\ \n"); printf("\­ \­ \­ \> \n"); printf("\/ \/ \/ \n"); printf("\n\n"); //printing an arrow using one printf statement. printf("\\ \\ \\ \n"    "\­ \­ \­ \> \n"    "\/ \/ \/ \n"); system("pause"); } //print a special project listed in the file.  #include <stdio.h> #include <stdlib.h> int main(void)  { printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\n\n"); //do the above only using one printf statement. printf("*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n.*"); system("pause"); } // a demonstration of two math operators, using two float numbers input by the user of the  program. #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void)  { float integer1 float integer2 integer1 = 5 integer2 = 6 printf("Enter the first variable.\n"); scanf("%f\n"); system("pause"); } //First C Program, comment section, hello.c source code #include <stdio.h> #include <stdlib.h> int main(void) { printf("Hello World!"); system("pause"); } //print my name, a fact, and have a space in between. #include <stdio.h> #include <stdlib.h> int main(void) { printf("My name is Alexandra.\n"); printf("I lived in Virginia.\n"); system("pause"); } //This program illustrates how to print special characters­ //like, \, ", ', and % //print the program pictured on the slide #include <stdio.h> #include <stdlib.h> int main(void) { //printing name, date, and program purpose. //use \t to insert tabs. printf("Name:\t\tAlexandra Noreiga.\n"); printf("Today\'s Date:\t8/24/2016\n");  printf("Program:\tOutput of Special Characters\n\n"); printf("\n"); //print a backslash printf("Here is a backslash: \\ \n"); //print a double quote printf("Here is a double quote: \" \n"); //print a single quote printf("Here is a single quote: \' \n"); //print a percent sign printf("Here is a percent sign: %% \n"); //print all of them! printf("All of them!: \\ \"  \'  %% \n"); printf("\n\n"); system("pause"); }

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Jim McGreen Ohio University

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Jennifer McGill UCSF Med School

#### "Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over \$500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com