#include<stdio.h>
#include<conio.h>
main()
{
int age;
printf(" enter the age ");
scanf("%d",&age);
if(age>18)
{
printf(" citizen can give vote ");
}
else
{
printf(" citizen cannot give vote");
}
return 0;
}
you need strings to print any character(your name) this is not possible useing array:D
Input "enter name" ;n$ input "enter marks" ; m ifm > 40 then print n$, "pass" else print n$, "fail"
you cant
/*to print your namr*/ /*by girish kumar raghuvanshi*/ #include<stdio.h> #include<conio.h> void main() { printf("print ur name"); puts("girish"); getch(); }
Yes. I can write a python program that asks for your name and then prints "Hi, name, good to meet you." by writing the following program.#!/usr/bin/pythonname = input("What is your name? ")print("Hi", name + "," , "good to meet you.")If I change the third line toprint("Hi", name + ",", "good to meet you. Your name is", len(name), "letters long.")It will say "Hi name, good to meet you. Your name is xletters long.", thus making it a different program.
you need strings to print any character(your name) this is not possible useing array:D
happy birthday...
Input "enter name" ;n$ input "enter marks" ; m ifm > 40 then print n$, "pass" else print n$, "fail"
Write a program to accept name and store the name in its short form (e.g. Sikkim Manipal University should be stored as SMU)
you cant
Example: start ask the name for each word . print first letter stop
' '*** PROGRAM: Collecting student data: names/marks. ' '*** Create 2 array variables to store each students name/marks... DIM students$(10), marks$(10) '*** SCREEN ONE/Collect the data... CLS '...(CL)ear the Output (S)creen '*** print heading... PRINT "PROGRAM: Collecting each student names/marks..." PRINT '*** A FOR/NEXT loop is used to collect each individual students data... FOR eachStudentNo% = 1 TO 10 '*** Get each students names/marks 'by typing these values in from the keyboard.... PRINT eachStudentNo%; ">" INPUT " Enter student name"; students$(eachStudentNo%) INPUT "Enter student marks"; marks$(eachStudentNo%) NEXT '*** SCREEN TWO: Output the collected data... CLS '...(CL)ear the Output (S)creen '*** Print headings... PRINT "Student No.", "Student Name", "Student Marks" PRINT '*** FOR/NEXT loop is used to print out the 2 array student 'name/marks' values... FOR eachStudentNo% = 1 TO 10 '*** print out each students 'number/name/mark' values... PRINT eachStudentNo%, PRINT students$(eachStudentNo%), PRINT marks$(eachStudentNo%) NEXT END '...END of program/halt program code execution
/*to print your namr*/ /*by girish kumar raghuvanshi*/ #include<stdio.h> #include<conio.h> void main() { printf("print ur name"); puts("girish"); getch(); }
Design an algorithm that will accept a perons's name from the screen entered as surname, first name, separated by a comma. Your program is to display the name as frist name, followed by three blanks, followed by the surname. -defining diagram -pseudocode algorithm
Is this a hypothetical question or are you aware of a bank that actually does not print its name on its checks? Banks can refuse to accept checks they believe to be counterfeit, and a check without the name of the issuing bank on it sure sounds like it might be counterfeit to me.
There is no way. You need a username and password to play, and the program will not accept all blank spaces or dashes.
clear echo -n "Enter the Name / String:" while : do read name echo $name | awk '{print gsub(/[aeiou]/,"")}' done