#include<stdio.h> #include<conio.h> void main() { int grade; printf("Enter Your Grade:"); scanf_s("%d", &grade); if (grade >= 60) { printf("You passed"); } else { printf("Hard Luck You Failed"); } _getch(); }
// name is an array variable, more on this later... // means reserve 65 bytes of storage including terminated // string, '\0' char Initial, Name[65]; // some prompt to user... printf("Input name, initial and deposit:\n"); printf("What is your name? "); // read the user input and store the data at... scanf("%64s", Name);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)